package Bullfighting;

import java.util.ArrayList;

import javax.swing.plaf.synth.SynthSpinnerUI;

//设置牌，
//自动发牌。
public class BullClass {

	
	
	public static void main(String[] args) throws InterruptedException {
		System.out.println("===============斗牛游戏开始了=============");
		Thread.sleep(1000);
		System.out.println("");
		System.out.println("游戏规则：AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa");
		Thread.sleep(1000);
		System.out.println("发牌！");
		Thread.sleep(1000);
		Player pl = new Player();
		ArrayList<String> abc = new ArrayList<>();
		ArrayList<String> abcd = new ArrayList<>();
		
		Card card = new Card();
		
		abc.addAll(pl.getHandcard());
		abcd.addAll(pl.getHandcard());
		pl.setName("曦月 ");
		System.out.println("手牌："+abc);
		System.out.println(card.stringtoint(abc));
		System.out.println(card.niu(card.stringtoint(abc)));
		
		Player p2 = new Player();
		p2.setName("聪哥");
		System.out.println(p2.getName()+" 手牌："+abcd);
		System.out.println(card.stringtoint(abcd));
		System.out.println(card.niu(card.stringtoint(abcd)));
		Thread.sleep(2000);
//		Card c = new  Card();
//		System.out.println(c.oneCard());
	}

}
